Skip to content

NoneType hint: the short question - #35

Merged
cedricvogel-leo merged 1 commit into
mainfrom
fix/none-hint-short
Oct 26, 2026
Merged

cedricvogel-leo merged 1 commit into
mainfrom
fix/none-hint-short

Conversation

@cedricvogel-leo

Copy link
Copy Markdown
Collaborator

Shortens the hint on a None operand, for v0.1.14 together with #34:

before after
de Ein Wert ist None. Fehlt in einer Funktion das return – oder gibt sie ihr Ergebnis mit print aus? Ein Wert ist None. Fehlt in einer Funktion das return?
en A value is None. Is a function missing its return – or does it output its result with print? A value is None. Is a function missing its return?

A function that prints its result instead of returning it has no return either, so the short question covers both causes.

  • Changed: src/i18n.ts (de and en) and scripts/check-error-hints.mjs.
  • Unchanged: when the hint shows.

Lint (known warning only), the build and test:hints pass. After the merge I tag v0.1.14 (this and #34) and bump the IDE.

🤖 Generated with Claude Code

A function that prints its result instead of returning it has no return
either, so the short question covers both causes: «Ein Wert ist `None`.
Fehlt in einer Funktion das `return`?» (en: "A value is `None`. Is a
function missing its `return`?").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cedricvogel-leo
cedricvogel-leo merged commit 31b85e2 into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant